import http from '/@/utils/http';

/**
 * 帮助中心api接口集合
 * @method getModuleListApi 分类列表/根据模块类型获取类别名称
 * @method getModuleList2Api 获取有数据的模块
 * @method pageListApi 视频教程/分页查询
 * @method businessPageListApi 常见问题/分页查询
 * @method getInfoApi 常见问题/获取详情
 * @method getUserManualApi 获取用户手册
 * @method webPageListApi 视频教程/WEB分页查询
 */

export const getModuleListApi = async (params: any) => {
  return await http.get(`/system/manage/sysModuleInfo/getModuleList/${params}`)
}

export const getModuleList2Api = async (moduleType: any, terminal: any) => {
  return await http.get(`/system/mobile/sysModuleInfo/getModuleList/${moduleType}/${terminal}`)
}

export const pageListApi = async (params: any) => {
  return await http.post(`/system/mobile/sysVideoCourse/pageList`, params)
}

export const businessPageListApi = async (params: any) => {
  return await http.post(`/system/mobile/sysCommonProblem/businessPageList`, params)
}

export const getInfoApi = async (params: any) => {
  return await http.get(`/system/mobile/sysCommonProblem/getInfo/${params}`)
}

export const getUserManualApi = async () => {
  return await http.get(`/system/mobile/sysDataDictionary/getUserManual`)
}

export const webPageListApi = async (params: any) => {
  return await http.post(`/system/mobile/sysVideoCourse/webPageList`, params)
}